<template>
  <h1>这个是Foo组件</h1>
  <p>Foo组件接收出阿尼参数:{{ age }}</p>
</template>

<script>
import { inject } from "@vue/runtime-core";
export default {
  name: "Foo",
  setup() {
    let age = inject("cash");
    let num = inject("currency");
    num(200000);
    return {
      age,
    };
  },
};
</script>

<style>
</style>